package lab02.Test09;

/**
 * Created by Administrator on 2017/10/19.
 */
public class Student {
    String studentNum;
    String classNum;
    String name;
    String sex;
    int age;

    public String getStudentNum() {
        return studentNum;
    }

    public void setStudentNum(String studentNum) {
        this.studentNum = studentNum;
    }

    public String getClassNum() {
        return classNum;
    }

    public void setClassNum(String classNum) {
        this.classNum = classNum;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return (studentNum+"--"+classNum+"--"+name+"--"+sex+"--"+age);
    }

    public static void main(String[] args) {
        Student student = new Student();
        student.setStudentNum("1606101086");
        student.setClassNum("01");
        student.setName("yaojian");
        student.setSex("nan");
        student.setAge(19);
        System.out.println(student.toString());
    }
}
